import { Component, Input, OnInit } from '@angular/core';
import { _HttpClient }              from '@delon/theme';
import { STColumn }                 from "@delon/abc";
import { SFDateWidgetSchema }       from "@delon/form";

@Component({
    selector   : 'app-device-view-replenishment',
    templateUrl: './replenishment.component.html',
})
export class DeviceViewReplenishmentComponent implements OnInit
{
    
    @Input()
    deviceId: string;
    columns: STColumn[] = [
        { title: '设备名称', index: '' },
        { title: '设备标识', index: '' },
        { title: '商家名称', index: '' },
        { title: '补货员', index: '' },
        { title: '补货时间', index: '' },
        { title: '补货数量', index: '' },
        { title: '当前库存', index: '' },
    ];
    url = "";
    schema = {
        properties: {
            user    : {
                type : 'string',
                title: '补货员',
            },
            fromDate: {
                type  : 'string',
                title : '开始时间',
                format: 'date',
                ui    : { widget: 'date', end: 'toDate' } as SFDateWidgetSchema,
            },
            toDate  : {
                type  : 'string',
                format: 'date',
                ui    : { widget: 'date', end: 'toDate' } as SFDateWidgetSchema,
            },
        },
    };
    
    constructor( private http: _HttpClient ) { }
    
    ngOnInit() { }
    
}
